#include "widget.h"
#include "ui_widget.h"

#include <QLabel>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    // 给 lable 对象，指定一个父对象
    QLabel* lable = new QLabel(this);
    lable->setText("Hello World");
}

Widget::~Widget()
{
    delete ui;
}

